/*
 * @Description: ...
 * @Author: yangli 121029539@qq.com
 * @Date: 2025-01-18 09:20:44
 * @LastEditTime: 2025-02-19 14:36:05
 * @LastEditors: yangli 121029539@qq.com
 * @FilePath: \uniapp\src\hooks\useCopy.ts
 */
export function useCopy() {
    const copy = (text: string) => {
        uni.setClipboardData({
            data: String(text),
            success: function () {
                uni.showToast({
                    title: '复制成功'
                });
            }
        })
    }
    return {
        copy
    }
}
